package com.haojin.spring.resources.ResourceLoaderAwareDemo;

import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.springframework.core.io.ResourceLoader;

import javax.jws.soap.SOAPBinding;

/**
 * @author .29.
 * @create 2023-03-02 21:12
 */
public class Demo {
    public static void main(String[] args){
        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("bean.xml");
        testBean testBean = context.getBean("testBean", testBean.class);
        ResourceLoader resourceLoader = testBean.getResourceLoader();
        System.out.println(context == resourceLoader);
    }
}
